import 'package:json_annotation/json_annotation.dart';

part 'sort_commodity_cell.g.dart';

@JsonSerializable()
class SortCommodityCell extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'cellNum')
  int cellNum;

  @JsonKey(name: 'totalFee')
  int totalFee;

  @JsonKey(name: 'type')
  int type;

  SortCommodityCell(
    this.name,
    this.cellNum,
    this.totalFee,
  );

  factory SortCommodityCell.fromJson(Map<String, dynamic> srcJson) => _$SortCommodityCellFromJson(srcJson);

  Map<String, dynamic> toJson() => _$SortCommodityCellToJson(this);
}
